package com.gywj.race.config.properties;


import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * Redis 配置文件 properties对应类
 */
@Component
@ConfigurationProperties(prefix = OssProperties.PREFIX)
public class OssProperties {

    /**
     * 对应配置文件里的配置键
     */
    public final static String PREFIX = "spring.application.ali.oss";

    /**
     * 连接区域地址
     */
    private String endpoint;

    /**
     * 需要存储的bucketName
     */
    private String bucketName;

    /**
     * 图片保存路径
     */
    private String picLocation;
    /**
     * 连接keyId
     */
    private String accessKeyId;

    /**
     * 连接秘钥
     */
    private String accessKeySecret;


    public String getEndpoint() {
        return endpoint;
    }

    public void setEndpoint(String endpoint) {
        this.endpoint = endpoint;
    }

    public String getAccessKeyId() {
        return accessKeyId;
    }

    public void setAccessKeyId(String accessKeyId) {
        this.accessKeyId = accessKeyId;
    }

    public String getAccessKeySecret() {
        return accessKeySecret;
    }

    public void setAccessKeySecret(String accessKeySecret) {
        this.accessKeySecret = accessKeySecret;
    }

    public String getBucketName() {
        return bucketName;
    }

    public void setBucketName(String bucketName) {
        this.bucketName = bucketName;
    }

    public String getPicLocation() {
        return picLocation;
    }

    public void setPicLocation(String picLocation) {
        this.picLocation = picLocation;
    }
}
